﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FinanceRenewal.aspx.cs"
    Inherits="PMS.Web.FinanceRenewal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="css/grouplist.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        //显示
        function showContentDiv(t) {
            $(".contentDiv").hide();
            $(".contentDiv").eq(t).show();
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hid_ProjectID" runat="server" Value="0" />
    <asp:HiddenField ID="hid_ID" runat="server" Value="0" />
    <div style="margin: auto; width: 98%;">
        <table width="100%">
            <tr>
                <td align="right" style="width: 120px;">
                    项目类型：
                </td>
                <td align="left">
                    <asp:Label ID="lab_ProjectType" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" style="width: 100px;">
                    工程编号：
                </td>
                <td align="left">
                    <asp:Label ID="lab_ProjectID" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" style="width: 100px;">
                    JDE号：
                </td>
                <td align="left">
                    <asp:Label ID="lab_JDEID" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    城市：
                </td>
                <td>
                    <asp:Label ID="lab_City" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    项目名称：
                </td>
                <td colspan="3">
                    <asp:Label ID="lab_ProjectName" ForeColor="Red" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    系统安装地址：
                </td>
                <td>
                    <asp:Label ID="lab_SystemPath" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    客户联系人：
                </td>
                <td>
                    <asp:Label ID="lab_Customer" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    联系电话：
                </td>
                <td>
                    <asp:Label ID="lab_CustomerTel" ForeColor="Red" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <img src="image/mainpage_line.jpg" style="margin: 5px 0px 5px 0px;" />
        <div class="contentDiv">
            <table>
                <tr>
                    <td align="right" style="padding-right: 4px">
                        <asp:Label ID="CalendarFrom" runat="server" Text="From"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_FromDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td align="right" style="padding-right: 4px">
                        <asp:Label ID="CalendarTo" runat="server" Text="To"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_ToDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td style="padding-right: 4px">
                        <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="BlueButton_Min" OnClick="btn_Search_Click" />
                    </td>
                    <td style="padding-right: 4px">
                        <asp:Button ID="btn_Export" runat="server" Text="导出" CssClass="BlueButton_Min" OnClick="btn_Export_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btn_Add" runat="server" Text="添加" CssClass="BlueButton_Min" OnClientClick="showContentDiv(1);return false;" />
                    </td>
                </tr>
            </table>
            <img src="image/mainpage_line.jpg" style="margin: 5px 0px 5px 0px;" />
            <asp:GridView ID="gv_PMS_ProjectRenewalFinance" runat="server" AutoGenerateColumns="False"
                OnRowDataBound="gv_PMS_ProjectRenewalFinance_RowDataBound" HeaderStyle-CssClass="GridHeader"
                CssClass="GridTable" HeaderStyle-Height="23px" Width="100%" ShowHeaderWhenEmpty="True"
                DataKeyNames="id" EmptyDataText="没有数据" EmptyDataRowStyle-CssClass="GridTableTDCenter"
                OnRowCommand="gv_PMS_ProjectRenewalFinance_RowCommand">
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="4%" />
                        <ItemStyle Width="4%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="city" HeaderText="城市" HeaderStyle-CssClass="GridHeader"
                        Visible="false" ItemStyle-CssClass="GridTableTD">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="customerName" HeaderText="网点名称" HeaderStyle-CssClass="GridHeader"
                        Visible="false" ItemStyle-CssClass="GridTableTD">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="signingDate" HeaderText="合同签订日" DataFormatString="{0:yyyy-MM-dd}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="8%" />
                        <ItemStyle Width="8%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="signingAmount" HeaderText="合同/批复金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="changeVOAmount" HeaderText="变更 VO" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="settleAmount" HeaderText="最终结算金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="payAmount" HeaderText="已支付金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="applyAmount" HeaderText="申请金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="noApplyAmount" HeaderText="未申请金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="maintainDescription" HeaderText="维修/整改内容" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="remark" HeaderText="备注" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTD" Visible="false"></asp:BoundField>
                    <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imabtn_Edit" runat="server" CausesValidation="False" CommandName="Edited"
                                ImageUrl="~/image/Edit.gif" Text="编辑" CommandArgument='<%#Eval("id") %>' />
                        </ItemTemplate>
                        <HeaderStyle CssClass="GridHeader" Width="4%" />
                        <ItemStyle CssClass="GridTableTDCenter" Width="4%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imabtn_Delete" runat="server" CausesValidation="False" CommandName="Del"
                                ImageUrl="~/image/Delete.gif" Text="删除" CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('确定删除?');" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="GridHeader" Width="4%" />
                        <ItemStyle CssClass="GridTableTDCenter" Width="4%" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="contentDiv" style="display: none;">
            <div style="font-size: 14px; font-weight: bold;">
                维修更换清单</div>
            <table style="width: 100%">
                <tr>
                    <td align="right">
                        合同签订日期
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_SigningDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td align="right">
                        合同/批复金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_SigningAmount" runat="server"></asp:TextBox>
                    </td>
                    <td align="right">
                        变更 VO
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_ChangeVOAmount" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        最终结算金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_SettleAmount" runat="server"></asp:TextBox>
                    </td>
                    <td align="right">
                        已支付金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_PayAmount" runat="server"></asp:TextBox>
                    </td>
                    <td align="right">
                        本月申请金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_ApplyAmount" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        未申请金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_NoApplyAmount" runat="server"></asp:TextBox>
                    </td>
                    <td align="right">
                        维修/整改内容
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_ApplyStage" runat="server"></asp:TextBox>
                    </td>
                    <td align="right">
                        备注
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_Remark" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" align="center">
                        <asp:Button ID="btn_AddFinanceRenewal" runat="server" CssClass="BlueButton_Min" Text="提交"
                            OnClick="btn_AddFinanceRenewal_Click" /><input id="btn_Return" style="margin-left: 20px;"
                                class="BlueButton_Min" value="返回" type="button" onclick="showContentDiv(0);" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
